﻿using WJP;
using WJP.ComponentModel;
using WJP.Logging;

namespace TestLib
{
    /// <summary>
    /// 领域插件
    /// </summary>
    public class Plugin : PluginBase
    {
        public override void Initialize(IApp app)
        {
            app.AllPluginsIntialized += (s, e) =>
            {
                IocManager.Resolve<ILoggerFactory>().Create(typeof(Plugin)).Info("领域插件初始化测试");
            };

            IocManager.RegisterAssemblyByConvention(GetType().Assembly);
        }
    }
}
